What if you're documenting a software product, or writing up a coding tutorial? Docnado has you covered. Create blocks of example code with syntax highlighting.

Use three backticks (```) followed by the language you wish to use.

 ```C
#include <stdio.h>

main() {
        printf("Hello, World\n");
}
 ```
#include <stdio.h>

main() {
        printf("Hello, World\n");
}

For complete information on highlighter used please see the Highlight.js implementation.

This is some Python code:

def foo(bar):
    pass

This is some JavaScript code:

function look(where) {
    if (where == 'here') {
        alert('woo');
    }
}

We can even highlight markdown code:

# H1
I am **bold** and I am *italic*.

The Atom editor applies the syntax highlighting in the editor.

Code blocks can also be used in an inline style, by putting a single backtick before and after your code sample, but remember docnado does not support highlighting in this mode.

This is an example of how to use inline code blocks `C = map(lambda x: (float(5)/9)*(x-32), Fahrenheit)`.

This is an example of how to use inline code blocks C = map(lambda x: (float(5)/9)*(x-32), Fahrenheit).